SELECT KeyID FROM Page WHERE (Alias LIKE ''%20+%20thisitem.Alias%20+%20'/' OR KeyID = ''%20+%20thisitem.Alias%20+%20'/') AND Visible=1 AND LanguageID = 1
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%20+%20thisitem.Alias%20+%20'/' OR KeyID = ''%20+%20thisitem.Alias%20+%20'/') AN' at line 1